package com.ww.scm.web;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.ww.scm.service.DictionaryManager;

@Controller
@RequestMapping(value = "/security")
public class SecurityController {
	
	
	/*
	 * 日志类
	 */
	private static Logger logger = LoggerFactory.getLogger(SecurityController.class);

	@Autowired
	private DictionaryManager dictionaryManager;
	
	public void setDictionaryManager(DictionaryManager dictionaryManager) {
		this.dictionaryManager = dictionaryManager;
	}
	
	@RequestMapping(params = "method=login")
	@ResponseBody
	public ModelAndView login(HttpServletRequest request) {
		
		return new ModelAndView("/sec/","userInfo",null);  
	}

}
